﻿#include <iostream>
#include <iomanip>
using namespace std;

int main() {
	int a[2][3] = { {1,2,3}, {3,2,1} };
	int b[2][3] = { {2,3,4}, {4,3,2} };
	int c[2][3];

	for (int i = 0; i < 2; i++) {
		for (int j = 0; j < 3; j++) {
			c[i][j] = a[i][j] + b[i][j];
		}
	}

	for (int i = 0; i < 2; i++) {
		for (int j = 0; j < 3; j++) {
			cout << setw(3) << a[i][j];
		}
	}

	cout << '\n';

	for (int i = 0; i < 2; i++) {
		for (int j = 0; j < 3; j++) {
			cout << setw(3) << b[i][j];
		}
	}

	cout << '\n';

	for (int i = 0; i < 2; i++) {
		for (int j = 0; j < 3; j++) {
			cout << setw(3) << c[i][j];
		}
	}

	cout << '\n';

	cin.get();
}